{% extends "base.html" %}

{% block errors %}

{% if form.errors %}
<p>Incorrect username or password. Please try again.</p>
{% endif %}

{% endblock %}

{% block content %}
<div id="login" title="Login" class="form">
 <form method="post" action=".">
  <fieldset>
   <table>
    <tr>
     <td>{{ form.username.label_tag }}</td>
     <td>{{ form.username }}</td>
    </tr>
    <tr>
     <td>{{ form.password.label_tag }}</td>
     <td>{{ form.password }}</td>
    <tr>
   </table>
   <div class="submit"><input type="submit" value="login" /></div>
  </fieldset>
  <input type="hidden" name="next" value="{{ next }}" />
 </form>
</div>
{% endblock %}
